(function(){"use strict";BX.namespace("BX.Landing.UI");BX.Landing.UI.Highlight=function(){this.layout=BX.create("div");this.layout.style.position="absolute";this.layout.style.border="2px #fe541e dashed";this.layout.style.top="0";this.layout.style.right="0";this.layout.style.bottom="0";this.layout.style.left="0";this.layout.style.zIndex="9999";this.layout.style.opacity=".4";this.layout.style.pointerEvents="none";this.layout.style.transform="translateZ(0)"};BX.Landing.UI.Highlight.highlights=new BX.Landing.Collection.BaseCollection;BX.Landing.UI.Highlight.instance=null;BX.Landing.UI.Highlight.getInstance=function(){if(!BX.Landing.UI.Highlight.instance){BX.Landing.UI.Highlight.instance=new BX.Landing.UI.Highlight}return BX.Landing.UI.Highlight.instance};BX.Landing.UI.Highlight.prototype={show:function(t,i){this.hide();if(BX.type.isArray(t)){t.forEach(function(t){this.highlightNode(t)},this)}else if(BX.type.isDomNode(t)){this.highlightNode(t,i)}},hide:function(){BX.Landing.UI.Highlight.highlights.forEach(function(t){BX.DOM.write(function(){BX.remove(t.highlight);t.node.style.position="";t.node.style.userSelect="";t.node.style.cursor=""}.bind(this))});BX.Landing.UI.Highlight.highlights.clear()},highlightNode:function(t,i){var n=BX.clone(this.layout);if(i){BX.DOM.write(function(){n.style.position="fixed";n.style.width=i.width+"px";n.style.height=i.height+"px";n.style.top=i.top+"px";n.style.left=i.left+"px";n.style.right=i.right+"px";n.style.bottom=i.bottom+"px"});BX.Landing.PageObject.getInstance().view().then(function(t){BX.DOM.write(function(){BX.append(n,t.contentDocument.body)}.bind(this))})}else{BX.DOM.write(function(){BX.append(n,t)}.bind(this))}BX.DOM.write(function(){t.style.position="relative";t.style.userSelect="none";t.style.cursor="pointer"}.bind(this));BX.Landing.UI.Highlight.highlights.add({node:t,highlight:n})}}})();